package com.zhs.smartmall.coupon.dto;

import io.swagger.annotations.ApiModel;
import lombok.*;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 *
 * @author 
 * @since 2023-11-15
 */
@Data
@ApiModel(value = "SmsSeckillSkuRelationDto")
public class SmsSeckillSkuRelationDto implements Serializable {
        //表字段
        private static final long serialVersionUID = 1L;
        @JsonSerialize(using = ToStringSerializer.class)
        @ApiModelProperty(value = "主键")
        private Long id;

        @JsonSerialize(using = ToStringSerializer.class)
        @ApiModelProperty(value = "活动id")
        private Long promotionId;

        @JsonSerialize(using = ToStringSerializer.class)
        @ApiModelProperty(value = "活动场次id")
        private Long promotionSessionId;

        @JsonSerialize(using = ToStringSerializer.class)
        @ApiModelProperty(value = "商品id")
        private Long skuId;

        @ApiModelProperty(value = "秒杀价格")
        private java.math.BigDecimal seckillPrice;

        @ApiModelProperty(value = "秒杀总量")
        private Integer seckillCount;

        @ApiModelProperty(value = "每人限购数量")
        private Integer seckillLimit;

        @ApiModelProperty(value = "排序")
        private Integer seckillSort;

        @ApiModelProperty(value = "创建时间")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date createTime;

        @ApiModelProperty(value = "更新时间")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date updateTime;

        @ApiModelProperty(value = "是否删除，0：未删除 1：删除")
        private Integer isDeleted;

        //=====================自定义字段=====================

        //id
        private List<String> idList;
}
